<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@page import="Dao.*" %>
    <%@page import="Entity.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>我的个人信息</title>
</head>
<body>
<link rel="stylesheet" href="<%=request.getContextPath() %>/css/administratorPage.css" type="text/css"></link>
<jsp:useBean id="TeachersInformationDao" class="Dao.TeachersInformationDao"></jsp:useBean>
<jsp:useBean id="Teacher" class="Entity.Teacher"></jsp:useBean>
<%
    //通过当前session中的教师号查询该教师的所有信息
String teacherNo=(String)session.getAttribute("session_userName");
Teacher teacher=TeachersInformationDao.queryTeacherByNo(teacherNo);   
%>
<form action="/UniversityResourceSystem/TeacherPersonalServlet" method="post" name="myPersonal_teacher_form">
<table border="1" class="mytable">
			<tr align="center"><td colspan="4">我的个人信息</td></tr>
			<%-- <%Student student=(Student)session.getAttribute("session_studentPersonalInformation"); %> --%>
			<input type="hidden" name="opttype" value="update"/>
			<tr>
			<td>教师号：</td><td><input type="text" value=<%=teacher.getTeacherNo()%> readonly name="teacherNo"> </td>
			<td>姓名：</td><td><input type="text" value=<%=teacher.getTeacherName() %> name="teacherName"></td>
			</tr>
			<tr>
			<td>性别：</td><td><input type="text" value=<%=teacher.getSex() %> name="sex"></td><td colspan="2"></td>
			</tr>
			<tr>
			<td>学院：</td><td><input type="text" value=<%=teacher.getDept() %> name="dept"></td>
			<td>身份证号：</td><td><input type="text" value=<%=teacher.getTeacherId() %> name="teacherId"></td>
			</tr>
			<tr>
			<td>电话：</td><td><input type="text" value=<%=teacher.getTel() %> name="tel"></td>
			<td>密码：</td><td><input type="text" value=<%=teacher.getPwd() %> name="pwd"></td>
			</tr>
			<tr>
			<%-- <td colspan="4"><a href="StudentPersonalServlet&&studentNo=<%=student.getStudentNo() %>&&opttype=update
			&&studentName='+document.getElementByName('studentName')+' style="text-decoration: none;">保存</a></td> --%>
			<td colspan="4" align="center"><input type="submit" value="保存"/></td>
			</tr>
		</table>
		</form>
</body>
</html>